package cn.zcib.tms.dao;

import cn.zcib.tms.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface UserMapper {


    //登录
    User login(@Param("name") String name, @Param("password") String password);

    //更新登录时间
    void updateLoginTime(Date date);

    //添加用户
    void addUser(User user);

    User findUserByName(String name);
}